package com.itbaizhan.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Map;
import java.util.List;

/**
 * @author spf
 * @date 2024/3/3
 * @time 20:26
 */
@Data
@NoArgsConstructor
public class Item {

    //商品id
    private String id;
    //商品标题
    private String title;
    //销量
    private Long sales;
    //是否为推荐商品
    private Boolean recommendation;
    //热门排序|权重，数学
    private Byte recoSort;
    //商品价格
    private Long price;
    //城市
    private String city;
    //租赁方式-整租\合租
    private String rentType;
    //房屋类型
    private String houseType;
    // 房屋特性， Map集合。集合存储数据内容为： years: "建造年份", type: "房屋类型，几室几厅", level: "所在楼层", style: "装修标准", orientation: "房屋朝向"
    private Map<String, String> info;
    //商品图片
    private List<String> imgs;
    //预订时间
    private Date buytime;
    //是否已出租
    private Boolean isRented;
}
